package com.hdoit.ares.logical.share.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hdoit.ares.logical.share.dao.ITrainCourseDao;
import com.hdoit.ares.logical.share.mapper.TrainCourseMapper;
import com.hdoit.ares.logical.share.model.TrainCourse;
import com.hdoit.ares.logical.viewmodel.share.TrainCourseSearch;
import com.tennetcn.common.dao.base.impl.SuperDao;
import com.tennetcn.common.message.PagerModel;
/**
 * @author      wangxuexue
 * @email       
 * @createtime  2017年11月19日 16:41:40
 * @comment
 */
@Component
public class TrainCourseDaoImpl extends SuperDao<TrainCourse> implements ITrainCourseDao{

	private TrainCourseMapper trainCourseMapper;
	
	public TrainCourseMapper getTrainCourseMapper() {
		return trainCourseMapper;
	}

	@Resource(name = "trainCourseMapper")
	public void setTrainCourseMapper(TrainCourseMapper trainCourseMapper) {
		this.trainCourseMapper = trainCourseMapper;
	}

	@Override
	public List<TrainCourse> queryLimittrainCourses(String courseType,String courseKinds) {
		
		return trainCourseMapper.queryLimittrainCourses(courseType, courseKinds);
	}

	@Override
	public List<TrainCourse> queryAlltrainCourses(String courseType,String courseKinds) {
		
		return trainCourseMapper.queryAlltrainCourses(courseType, courseKinds);
	}

	@Override
	public TrainCourse querytrainCourseDetails(String id) {
		
		return trainCourseMapper.querytrainCourseDetails(id);
	}

	@Override
	public List<TrainCourse> queryOthertrainCourses(String id, String courseType,String courseKinds) {
		
		return trainCourseMapper.queryOthertrainCourses(id, courseType, courseKinds);
	}

	@Override
	public int queryTrainCourseCount(TrainCourseSearch trainCourseSearch) {
		
		return trainCourseMapper.queryTrainCourseCount(trainCourseSearch);
	}

	@Override
	public List<TrainCourse> queryTrainCourseList(TrainCourseSearch trainCourseSearch, PagerModel pagerModel) {
		
		return trainCourseMapper.queryTrainCourseList(trainCourseSearch, pagerModel);
	}

	@Override
	public TrainCourse queryTrainCourseModel(String key) {
		
		return trainCourseMapper.queryTrainCourseModel(key);
	}

	@Override
	public int updateVideoById(String id) {
		
		return trainCourseMapper.updateVideoById(id);
	}

	@Override
	public int updateSmallPicById(String id) {

		return trainCourseMapper.updateSmallPicById(id);
	}
}